﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Candidate_Registration.aspx.cs"
    Inherits="CTEA_INDIA.Candidate_Registration" Theme="Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
    <title>Candidate Registration </title>
    <script type="text/javascript">

        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
        }
        var count = 500;
        function limiter() {
            var tex = document.getElementById("txtAddress").value;
            // alert(tex);
            var len = tex.length;
            if (len > count) {
                tex = tex.substring(0, count);
                document.getElementById("txtAddress").value = tex;
                return false;
            }

        }

    </script>
</head>
<body>
    <form id="form2" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <%--<div style="padding-top: 100px">
        <hr />
    </div>--%>
    <div style="margin-top: 30px">
        <center>
            <table width="900px" cellpadding="3" cellspacing="3" border="0" class="MiddleBlackDivCandidateReg">
                <tr>
                    <td align="center">
                        <span id="errSpan" style="width: 550px" class="spanErrorMsgs" runat="server" visible="false">
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <table cellpadding="2px" cellspacing="5" cellpadding="5" border="0" width="600px">
                            <tr>
                                <td colspan="2" class="myaccount" align="left" style="font-size: 25px; font-weight: bold;
                                    color: #032751">
                                    Candidate Registration
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <fieldset style="background-color: White">
                                        <legend class="Formlbl" style="font-weight: bold; text-align: left">Login Details</legend>
                                        <table cellpadding="5" cellspacing="5" width="520px" border="0">
                                            <tr>
                                                <td class="Label">
                                                    EmailID(UserName)*
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtEmailId" runat="server" TabIndex="1"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RF_EmailID" runat="server" ErrorMessage="Please, Enter Email ID"
                                                        SetFocusOnError="true" CssClass="validators" ControlToValidate="txtEmailId" Display="None"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RF_EmailID">
                                                    </asp:ValidatorCalloutExtender>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailId"
                                                        SetFocusOnError="true" CssClass="validators" ErrorMessage="Enter Valid Email"
                                                        ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                        Display="none"></asp:RegularExpressionValidator>
                                                    <asp:ValidatorCalloutExtender ID="RegularExpressionValidator1_ValidatorCalloutExtender"
                                                        runat="server" TargetControlID="RegularExpressionValidator1" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Password* (must contain alphabets and numbers)
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPass" runat="server" TabIndex="2" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPass"
                                                        SetFocusOnError="true" ErrorMessage="Enter Password" ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender"
                                                        runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2" />
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPass"
                                                        SetFocusOnError="true" ErrorMessage="Enter Password Properly" ValidationExpression="(?!^[0-9]*$)(?!^[a-z]*$)^([a-z0-9@\$]{8,20})$"
                                                        Display="None" CssClass="validators"></asp:RegularExpressionValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" Enabled="True"
                                                        TargetControlID="RegularExpressionValidator3" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" width="170px">
                                                    Confirm Password*
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtCpass" runat="server" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="None"
                                                        SetFocusOnError="true" ControlToValidate="txtCpass" ErrorMessage="Enter Confirm Password"
                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidator3">
                                                    </asp:ValidatorCalloutExtender>
                                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpass"
                                                        SetFocusOnError="true" Display="none" ControlToValidate="txtCpass" ErrorMessage="Mismatch Password"
                                                        CssClass="validators"></asp:CompareValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="CompareValidator1">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <fieldset style="background-color: White">
                                        <legend class="Formlbl" style="font-weight: bold; text-align: left">Personal Details</legend>
                                        <table cellpadding="5" cellspacing="5" width="520px" border="0">
                                            <tr>
                                                <td>
                                                    Artist ID :
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtArtistID" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" width="150px" align="left">
                                                    Name
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                                        SetFocusOnError="true" ControlToValidate="txtName" ErrorMessage="Please, Enter Name"
                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="RequiredFieldValidator6">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Gender
                                                </td>
                                                <td>
                                                    <asp:RadioButtonList ID="rbtGender" runat="server" CssClass="Label " RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="Male" Value="Male" Selected="True">
                                                        </asp:ListItem>
                                                        <asp:ListItem Text="Female" Value="Female">
                                                        </asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Date Of Birth
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>
                                                    <%-- <asp:TextBoxWatermarkExtender ID="txtDOB_TextBoxWatermarkExtender" 
                        runat="server" TargetControlID="txtDOB" WatermarkText="MM/DD/YYYY" >--%>
                                                    <%-- </asp:TextBoxWatermarkExtender>--%>
                                                    <asp:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="txtDOB_MaskedEditExtender"
                                                        ControlToValidate="txtDOB" IsValidEmpty="False" EmptyValueMessage="Date is required"
                                                        InvalidValueMessage="Date is invalid" Display="None" />
                                                    <asp:MaskedEditExtender ID="txtDOB_MaskedEditExtender" runat="server" TargetControlID="txtDOB"
                                                        Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                        MaskType="Date" OnInvalidCssClass="MaskedEditError" PromptCharacter="_" AcceptNegative="Left"
                                                        DisplayMoney="Left" ErrorTooltipEnabled="True" InputDirection="LeftToRight " />
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="MaskedEditValidator1">
                                                    </asp:ValidatorCalloutExtender>
                                                    <asp:CustomValidator ID="CustomValidator1" ControlToValidate="txtDOB" OnServerValidate="IsNotFutureDate"
                                                        runat="server" ErrorMessage="The data cannot be a future date." Display="None"></asp:CustomValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" TargetControlID="CustomValidator1">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Profile Photo
                                                </td>
                                                <td align="left">
                                                    <asp:FileUpload ID="ftpProfpic" runat="server" CssClass="Label " />
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" Display="None" runat="server"
                                                        ErrorMessage="Please Select Your Photo " ControlToValidate="ftpProfpic"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" TargetControlID="RequiredFieldValidator8">
                                                    </asp:ValidatorCalloutExtender>
                                                    <%--   <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ErrorMessage="Only jpg,jpeg,gif,bmp,png files are allowed!"
                                                    ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.jpg|.jpeg|.gif|.bmp|.png|.JPG|.PNG)$"
                                                    ControlToValidate="ftpProfpic" Display ="None" ></asp:RegularExpressionValidator> 
                                                     <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="RegularExpressionValidator7">
                                        </asp:ValidatorCalloutExtender>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" valign="top">
                                                    Address*
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddress" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                                        ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address" CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator1">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Location
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlLocation" runat="server" Width="170px">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" width="170px">
                                                    Mobile Number
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPers_MobileNo" runat="server" MaxLength="10" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" Display="None"
                                                        ControlToValidate="txtPers_MobileNo" ErrorMessage="Please, Enter Education" CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator10" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Education
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtEducation" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="None"
                                                        ControlToValidate="txtEducation" ErrorMessage="Please, Enter Education" CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Qualification
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtQualification" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Apply for
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlApplyFor" runat="server" Width="170px">
                                                        <%-- <asp:ListItem Selected="True" Text="Acting" Value="Acting">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="Dancing" Value="Dancing"></asp:ListItem>
                                                    <asp:ListItem Text="Singing" Value="Singing"></asp:ListItem>
                                                    <asp:ListItem Text="Grooming" Value="Grooming"></asp:ListItem>
                                                    <asp:ListItem Text="Modelling" Value="Modelling"></asp:ListItem>
                                                    <asp:ListItem Text="Film Maker" Value="Film Maker"></asp:ListItem>
                                                    <asp:ListItem Text="Film Direction" Value="Film Direction"></asp:ListItem>
                                                    <asp:ListItem Text="Film Production" Value="Film Production"></asp:ListItem>
                                                    <asp:ListItem Text="Production Manager" Value="Production Manager"></asp:ListItem>
                                                    <asp:ListItem Text="Casting Manager" Value="Casting Manager"></asp:ListItem>
                                                    <asp:ListItem Text="Actor PRO" Value="Actor PRO"></asp:ListItem>
                                                    <asp:ListItem Text="Publicity Advisor" Value="Publicity Advisor"></asp:ListItem>
                                                    <asp:ListItem Text="Choreography" Value="Choreography"></asp:ListItem>
                                                    <asp:ListItem Text="Cinematography" Value="Cinematography"></asp:ListItem>
                                                    <asp:ListItem Text="RJ" Value="RJ"></asp:ListItem>
                                                    <asp:ListItem Text="DJ" Value="DJ"></asp:ListItem>
                                                    <asp:ListItem Text="Event Management" Value="Event Management"></asp:ListItem>
                                                    <asp:ListItem Text="Theater Art" Value="Theater Art"></asp:ListItem>--%>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlApplyFor"
                                                        ErrorMessage="Please select category" InitialValue="-1" Display="None"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="RequiredFieldValidator9">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <fieldset style="background-color: White">
                                        <legend class="Formlbl" style="font-weight: bold; text-align: left">Guardian Details</legend>
                                        <table cellpadding="5" cellspacing="5" width="520px" border="0">
                                            <tr>
                                                <td class="Label ">
                                                    Name
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGuardian_Name" runat="server" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="None"
                                                        ControlToValidate="txtGuardian_Name" ErrorMessage="Please, Enter Name" CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label ">
                                                    Location
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGuardian_Locaton" runat="server" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Display="None"
                                                        ControlToValidate="txtGuardian_Locaton" ErrorMessage="Please, Enter Location"
                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator7">
                                                    </asp:ValidatorCalloutExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" width="170px">
                                                    Contact Number
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGuardian_Cno" runat="server" MaxLength="15"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label" width="170px">
                                                    Occupation
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtOccup" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Relationship to Candidate
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtRelationshp" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td class="Label">
                                                How did you come across CTEA INDIA ?
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtHow_Approched" runat="server"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p class="null" style="margin: 0in 0in 0pt; line-height: 130%;">
                                        <span style="font-size: 8.5pt; color: #042F54; line-height: 130%; font-family: Verdana;">
                                            <span style="font-size: small; font-family: arial; letter-spacing: 0px; line-height: 18px">
                                                Declaration
                                                <br />
                                                I hereby declare that the Information/Details furnished above are true to the best
                                                my knowledge.
                                                <br />
                                                <br />
                                            </span></span>
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Button ID="btnSubmit" runat="server" CssClass="btnsubmit" Text="SUBMIT" OnClick="btnSubmit_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
